package com.niu.shop.event;

import com.niu.core.common.component.context.event.Event;
import com.niu.core.common.component.context.event.EventResult;
import com.niu.core.common.component.context.listener.CallbackListener;
import lombok.Data;

/**
 * 活动信息
 */
public abstract class TestEventDefiner extends CallbackListener<TestEventDefiner.TestEvent> {

    @Data
    public static class TestEvent extends Event {
        private Integer age;
        private String nameTest;
    }

    @Data
    public static class TestResult extends EventResult {
        private Integer age;
        private String nameAge;
    }

    public abstract TestResult handleCallback(TestEvent event);
}
